package cn.iocoder.yudao.module.written.exam.controller.admin.jobcategories.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Schema(description = "管理后台 - 职位分类 Response VO")
@Data
@ExcelIgnoreUnannotated
public class JobCategoriesTreeRespVO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "27797")
    @ExcelProperty("id")
    private Long id;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "分类名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @ExcelProperty("分类名称")
    private String categoryName;

    @Schema(description = "分类层级", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("分类层级")
    private Integer categoryLevel;

    @Schema(description = "直接父分类id（顶级目录时，该值为0）", requiredMode = Schema.RequiredMode.REQUIRED, example = "15253")
    @ExcelProperty("直接父分类id（顶级目录时，该值为0）")
    private Long parentCategoryId;

    @Schema(description = "所有父分类id", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("所有父分类id")
    private String parentCategoryIds;

    @Schema(description = "启用状态（0：禁用，1：启用）", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("启用状态（0：禁用，1：启用）")
    private Integer enableStatus;

    @Schema(description = "直接子分类列表", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("直接子分类列表")
    private List<JobCategoriesTreeRespVO> children;

}